package cn.stylefeng.guns.modular.cb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wj
 * @since 2021-01-20
 */
@TableName("cb_wx_user")
public class CbWxUser implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 微信用户唯一标识
     */
      @TableId(value = "openid", type = IdType.ID_WORKER)
    private String openid;

    /**
     * 密钥
     */
    @TableField("session_key")
    private String sessionKey;


    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    @Override
    public String toString() {
        return "CbWxUser{" +
        "openid=" + openid +
        ", sessionKey=" + sessionKey +
        "}";
    }
}
